package com.hongyang.vo;

public enum ResultEnum {
    SUCDESS(1,"success"),
    FAILED(0,"failed"),
    DB_INSERT_FAILED(0,"数据库新增失败"),
    DB_UPDATE_FAILED(0,"数据库更新失败"),
    DB_DELETE_FAILED(0,"数据库删除失败"),
    PARAMS_FAILED(0,"参数不合法")
    ;

    //编号
    private int code;
    //失败信息
    private String  message;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    ResultEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
}
